<?php
/*
 * 品牌介绍页
 * @package    auto
 * @author     Mark
 * @copyright  Copyright (c) 2013 ixdcw team
 * @version    $Id: 78d363512ff16c64318bd9dcaaa63e1d35c5ede2 $
 */
defined('IN_IXDCW') or exit('Access Denied');
$brandId      = isset($brandId) ? intval($brandId) : 0;
$manufactorId = isset($manufactorId) ? intval($manufactorId) : 0;

if (!$brandId && !$manufactorId) {
	Prompt::error404();
}
if ($manufactorId) {
	$manufactor = AutoManufactor::get($manufactorId);
	$brandId    = $manufactor['parentid'];
}

//检测404
if($brandId) Auto::decide404($brandId);
if($manufactorId) Auto::decide404($manufactorId);

// 品牌信息
$brand = AutoBrand::get($brandId);

// 目录树 车系列表
$manusAndCars = AutoBrand::manusAndCars($brandId);

//品牌相关视频信息
$video = AutoVideo::byBrand($brandId);


include template('brand', $module);